//
//  woodenfishwatchApp.swift
//  woodenfishwatch
//
//  Created by 李志祥 on 2025/3/12.
//

import SwiftUI
import AVFoundation

@main
struct woodenfishApp: App {
    init() {
        // 配置音频会话
        do {
            try AVAudioSession.sharedInstance().setCategory(.playback)
            try AVAudioSession.sharedInstance().setActive(true)
            print("音频会话已成功配置")
        } catch {
            print("无法配置音频会话: \(error.localizedDescription)")
        }
    }
    var body: some Scene {
        WindowGroup {
            ContentView()
                .background(Color.black)
                .ignoresSafeArea()
        }
    }
}
